.class public Lcom/brixd/niceapp/activity/AppVideoActivity;
.super Lcom/brixd/niceapp/activity/AbsBaseActivity;
.source "AppVideoActivity.java"

# interfaces
.implements Landroid/media/AudioManager$OnAudioFocusChangeListener;
.implements Landroid/media/MediaPlayer$OnBufferingUpdateListener;
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;
.implements Landroid/media/MediaPlayer$OnInfoListener;
.implements Landroid/media/MediaPlayer$OnPreparedListener;
.implements Landroid/media/MediaPlayer$OnSeekCompleteListener;
.implements Landroid/view/SurfaceHolder$Callback;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/AppVideoActivity$AudioBecomingNoisy;,
        Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;
    }
.end annotation


# static fields
.field private static final CENTERPANEL_HIDE_DURATION:I = 0x1f4

.field private static final HIDE_DELAY_TIME:I = 0x1388

.field private static final PLAY_STATUS_BUFFERING:I = 0x4

.field private static final PLAY_STATUS_COMPLETED:I = 0x3

.field private static final PLAY_STATUS_ERROR:I = -0x1

.field private static final PLAY_STATUS_PAUSED:I = 0x2

.field private static final PLAY_STATUS_PLAYING:I = 0x1

.field private static final PLAY_STATUS_PREPARING:I = 0x0

.field private static final TOOLBAR_ANIM_DURATION:I = 0x12c

.field public static final VIDEO_APP_MODEL:Ljava/lang/String; = "video_app_model"


# instance fields
.field mAnimBottomBar:Landroid/animation/ObjectAnimator;

.field mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

.field mAnimTopBar:Landroid/animation/ObjectAnimator;

.field private mAppInstallReceiver:Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;

.field private mAudioBecomingNoisy:Lcom/brixd/niceapp/activity/AppVideoActivity$AudioBecomingNoisy;

.field mAudioManager:Landroid/media/AudioManager;

.field private mBackBtn:Landroid/widget/ImageButton;

.field private mBottomBar:Landroid/view/View;

.field private mBtnPlayCompletedDownload:Landroid/widget/Button;

.field private mBtnPlayCompletedReplay:Landroid/widget/Button;

.field private mBtnPlayControl:Landroid/widget/ImageButton;

.field private mColorBlack20:I

.field private mColorBlack70:I

.field private mColorTransparent:I

.field private mControlToolBar:Landroid/view/View;

.field private mCurrentPlayStatus:I

.field private mCurrentPlayTime:Landroid/widget/TextView;

.field private mCurrentPosition:I

.field private mDrawableIndicatorLoadingVideo:Landroid/graphics/drawable/AnimationDrawable;

.field private mIconOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

.field private mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private mImgIndicatorLoadingVideo:Landroid/widget/ImageView;

.field mIsBufferingEnd:Z

.field private mIsControlToolBarShown:Z

.field private mIsDestroy:Z

.field private mIsInstalled:Z

.field private mIsResumeToPlaying:Z

.field private mIsShowLaunch:Z

.field private mLastPlayStatus:I

.field private mLaunchOrDownloadBtn:Landroid/widget/Button;

.field private mMediaPlayer:Landroid/media/MediaPlayer;

.field private mProgressSeekBar:Landroid/widget/SeekBar;

.field private mRunnableHideControlToolBar:Ljava/lang/Runnable;

.field private mRunnableHidePlayControl:Ljava/lang/Runnable;

.field private mShareBtn:Landroid/widget/Button;

.field private mShowDetailBtn:Landroid/widget/Button;

.field private mSurfaceHolder:Landroid/view/SurfaceHolder;

.field private mSurfaceView:Landroid/view/SurfaceView;

.field private mTopBar:Landroid/view/View;

.field private mTopBarActions:Landroid/view/ViewGroup;

.field private mTotalPlayTime:Landroid/widget/TextView;

.field private mTxtNetworkError:Landroid/widget/TextView;

.field private mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

.field private mViewCenterPanel:Landroid/view/View;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsBaseActivity;-><init>()V

    .line 99
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsControlToolBarShown:Z

    .line 869
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->hideControlToolBar()V

    return-void
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/widget/ImageButton;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    return-object v0
.end method

.method static synthetic access$1002(Lcom/brixd/niceapp/activity/AppVideoActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 58
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsDestroy:Z

    return p1
.end method

.method static synthetic access$1100(Lcom/brixd/niceapp/activity/AppVideoActivity;)Lcom/brixd/niceapp/model/VideoAppModel;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    return-object v0
.end method

.method static synthetic access$1200(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->shareVideo()V

    return-void
.end method

.method static synthetic access$1300(Lcom/brixd/niceapp/activity/AppVideoActivity;)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z

    return v0
.end method

.method static synthetic access$1302(Lcom/brixd/niceapp/activity/AppVideoActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 58
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z

    return p1
.end method

.method static synthetic access$1400(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->launchOrDownloadApp()V

    return-void
.end method

.method static synthetic access$1500(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/media/MediaPlayer;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    return-object v0
.end method

.method static synthetic access$1600(Lcom/brixd/niceapp/activity/AppVideoActivity;I)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;
    .param p1, "x1"    # I

    .prologue
    .line 58
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    return-void
.end method

.method static synthetic access$1700(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->showLoading()V

    return-void
.end method

.method static synthetic access$1800(Lcom/brixd/niceapp/activity/AppVideoActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    return v0
.end method

.method static synthetic access$1900(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/widget/SeekBar;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    return-object v0
.end method

.method static synthetic access$2000(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/view/ViewGroup;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTopBarActions:Landroid/view/ViewGroup;

    return-object v0
.end method

.method static synthetic access$2100(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->hideCenterPanel()V

    return-void
.end method

.method static synthetic access$2200(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/widget/TextView;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTxtNetworkError:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$2300(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->resetViewsStatus()V

    return-void
.end method

.method static synthetic access$2400(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->resetVideo()V

    return-void
.end method

.method static synthetic access$2500(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/view/View;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mViewCenterPanel:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$2600(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/widget/Button;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$2700(Lcom/brixd/niceapp/activity/AppVideoActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->releaseVideo()V

    return-void
.end method

.method static synthetic access$2800(Lcom/brixd/niceapp/activity/AppVideoActivity;)Landroid/view/SurfaceView;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mSurfaceView:Landroid/view/SurfaceView;

    return-object v0
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/activity/AppVideoActivity;)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsControlToolBarShown:Z

    return v0
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/activity/AppVideoActivity;Z)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 58
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/AppVideoActivity;->showControlToolBar(Z)V

    return-void
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/activity/AppVideoActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    return v0
.end method

.method static synthetic access$602(Lcom/brixd/niceapp/activity/AppVideoActivity;I)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;
    .param p1, "x1"    # I

    .prologue
    .line 58
    iput p1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    return p1
.end method

.method static synthetic access$700(Lcom/brixd/niceapp/activity/AppVideoActivity;IZ)V
    .registers 3
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;
    .param p1, "x1"    # I
    .param p2, "x2"    # Z

    .prologue
    .line 58
    invoke-direct {p0, p1, p2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updateBtnPlayControlStatus(IZ)V

    return-void
.end method

.method static synthetic access$800(Lcom/brixd/niceapp/activity/AppVideoActivity;)Ljava/lang/Runnable;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mRunnableHideControlToolBar:Ljava/lang/Runnable;

    return-object v0
.end method

.method static synthetic access$900(Lcom/brixd/niceapp/activity/AppVideoActivity;)Ljava/lang/Runnable;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/AppVideoActivity;

    .prologue
    .line 58
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mRunnableHidePlayControl:Ljava/lang/Runnable;

    return-object v0
.end method

.method private configVideo()V
    .registers 4

    .prologue
    .line 551
    :try_start_0
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    const/4 v2, 0x3

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setAudioStreamType(I)V

    .line 552
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/VideoAppModel;->videoUrl:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setDataSource(Ljava/lang/String;)V

    .line 553
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mSurfaceHolder:Landroid/view/SurfaceHolder;

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setDisplay(Landroid/view/SurfaceHolder;)V

    .line 554
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/media/MediaPlayer;->setScreenOnWhilePlaying(Z)V

    .line 555
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, p0}, Landroid/media/MediaPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 556
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, p0}, Landroid/media/MediaPlayer;->setOnBufferingUpdateListener(Landroid/media/MediaPlayer$OnBufferingUpdateListener;)V

    .line 557
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, p0}, Landroid/media/MediaPlayer;->setOnSeekCompleteListener(Landroid/media/MediaPlayer$OnSeekCompleteListener;)V

    .line 558
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, p0}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 559
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, p0}, Landroid/media/MediaPlayer;->setOnInfoListener(Landroid/media/MediaPlayer$OnInfoListener;)V

    .line 560
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, p0}, Landroid/media/MediaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 561
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->prepareAsync()V
    :try_end_3f
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_3f} :catch_45
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_3f} :catch_47
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_3f} :catch_49
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_3f} :catch_40

    .line 566
    :goto_3f
    return-void

    .line 562
    :catch_40
    move-exception v0

    .line 564
    .local v0, "e":Ljava/lang/Exception;
    :goto_41
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_3f

    .line 562
    .end local v0    # "e":Ljava/lang/Exception;
    :catch_45
    move-exception v0

    goto :goto_41

    :catch_47
    move-exception v0

    goto :goto_41

    :catch_49
    move-exception v0

    goto :goto_41
.end method

.method private getVideoTime(J)Ljava/lang/String;
    .registers 4
    .param p1, "time"    # J

    .prologue
    .line 646
    const-string v0, "mm:ss"

    invoke-static {p1, p2, v0}, Lorg/apache/commons/lang3/time/DurationFormatUtils;->formatDuration(JLjava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private hideCenterPanel()V
    .registers 7

    .prologue
    .line 502
    const v1, 0x7f040006

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    .line 504
    .local v0, "scaleFadeOut":Landroid/view/animation/Animation;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mViewCenterPanel:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 505
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mHandler:Landroid/os/Handler;

    new-instance v2, Lcom/brixd/niceapp/activity/AppVideoActivity$13;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$13;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    const-wide/16 v4, 0x1f4

    invoke-virtual {v1, v2, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 512
    return-void
.end method

.method private hideControlToolBar()V
    .registers 2

    .prologue
    .line 464
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsControlToolBarShown:Z

    .line 465
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->reverse()V

    .line 466
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimTopBar:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->reverse()V

    .line 467
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimBottomBar:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->reverse()V

    .line 468
    return-void
.end method

.method private hideLoading()V
    .registers 3

    .prologue
    .line 444
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mDrawableIndicatorLoadingVideo:Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->stop()V

    .line 445
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mImgIndicatorLoadingVideo:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 446
    return-void
.end method

.method private initAnimations()V
    .registers 12

    .prologue
    const/4 v10, 0x0

    const-wide/16 v8, 0x12c

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 402
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mControlToolBar:Landroid/view/View;

    const-string v1, "backgroundColor"

    new-array v2, v7, [I

    iget v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorTransparent:I

    aput v3, v2, v5

    iget v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorBlack20:I

    aput v3, v2, v6

    invoke-static {v0, v1, v2}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    .line 404
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    invoke-virtual {v0, v8, v9}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 405
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    new-instance v1, Landroid/animation/ArgbEvaluator;

    invoke-direct {v1}, Landroid/animation/ArgbEvaluator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setEvaluator(Landroid/animation/TypeEvaluator;)V

    .line 406
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    new-instance v1, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 408
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTopBar:Landroid/view/View;

    const-string v1, "translationY"

    new-array v2, v7, [F

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f09001f

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v3

    aput v3, v2, v5

    aput v10, v2, v6

    invoke-static {v0, v1, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimTopBar:Landroid/animation/ObjectAnimator;

    .line 410
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimTopBar:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0, v8, v9}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 411
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimTopBar:Landroid/animation/ObjectAnimator;

    new-instance v1, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 413
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBottomBar:Landroid/view/View;

    const-string v1, "translationY"

    new-array v2, v7, [F

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f09000e

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimension(I)F

    move-result v3

    aput v3, v2, v5

    aput v10, v2, v6

    invoke-static {v0, v1, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimBottomBar:Landroid/animation/ObjectAnimator;

    .line 415
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimBottomBar:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0, v8, v9}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 416
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimBottomBar:Landroid/animation/ObjectAnimator;

    new-instance v1, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 417
    return-void
.end method

.method private initData()V
    .registers 7

    .prologue
    const/4 v5, 0x0

    const v4, 0x7f0200d8

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 138
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "video_app_model"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/VideoAppModel;

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    .line 139
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v0, v0, Lcom/brixd/niceapp/model/VideoAppModel;->packageName:Ljava/lang/String;

    invoke-static {p0, v0}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z

    .line 140
    iput-boolean v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsShowLaunch:Z

    .line 141
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 142
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    invoke-virtual {v0, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 143
    invoke-virtual {v0, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    .line 144
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    new-instance v1, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 145
    invoke-virtual {v0, v4}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 146
    invoke-virtual {v0, v4}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnLoading(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 147
    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIconOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 149
    new-instance v0, Lcom/brixd/niceapp/activity/AppVideoActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$1;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mRunnableHideControlToolBar:Ljava/lang/Runnable;

    .line 156
    new-instance v0, Lcom/brixd/niceapp/activity/AppVideoActivity$2;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$2;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mRunnableHidePlayControl:Ljava/lang/Runnable;

    .line 163
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080072

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorTransparent:I

    .line 164
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f08000b

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorBlack20:I

    .line 165
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080012

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorBlack70:I

    .line 167
    iput v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    .line 168
    iput v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    .line 169
    iput-boolean v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsBufferingEnd:Z

    .line 170
    iput-boolean v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsResumeToPlaying:Z

    .line 171
    iput-boolean v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsDestroy:Z

    .line 173
    const-string v0, "audio"

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/AudioManager;

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioManager:Landroid/media/AudioManager;

    .line 174
    new-instance v0, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;

    invoke-direct {v0, p0, v5}, Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;Lcom/brixd/niceapp/activity/AppVideoActivity$1;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAppInstallReceiver:Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;

    .line 175
    new-instance v0, Lcom/brixd/niceapp/activity/AppVideoActivity$AudioBecomingNoisy;

    invoke-direct {v0, p0, v5}, Lcom/brixd/niceapp/activity/AppVideoActivity$AudioBecomingNoisy;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;Lcom/brixd/niceapp/activity/AppVideoActivity$1;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioBecomingNoisy:Lcom/brixd/niceapp/activity/AppVideoActivity$AudioBecomingNoisy;

    .line 176
    return-void
.end method

.method private initWidgets()V
    .registers 6

    .prologue
    .line 179
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-boolean v2, v2, Lcom/brixd/niceapp/model/VideoAppModel;->isPortrait:Z

    if-eqz v2, :cond_110

    .line 180
    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->setRequestedOrientation(I)V

    .line 185
    :goto_a
    const v2, 0x7f03000a

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->setContentView(I)V

    .line 187
    const v2, 0x7f0a004c

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/SurfaceView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mSurfaceView:Landroid/view/SurfaceView;

    .line 188
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mSurfaceView:Landroid/view/SurfaceView;

    invoke-virtual {v2}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mSurfaceHolder:Landroid/view/SurfaceHolder;

    .line 189
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mSurfaceHolder:Landroid/view/SurfaceHolder;

    invoke-interface {v2, p0}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    .line 191
    const v2, 0x7f0a004d

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mControlToolBar:Landroid/view/View;

    .line 192
    const v2, 0x7f0a004e

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTopBar:Landroid/view/View;

    .line 193
    const v2, 0x7f0a004f

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageButton;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBackBtn:Landroid/widget/ImageButton;

    .line 194
    const v2, 0x7f0a0050

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/view/ViewGroup;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTopBarActions:Landroid/view/ViewGroup;

    .line 195
    const v2, 0x7f0a0051

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mShowDetailBtn:Landroid/widget/Button;

    .line 196
    const v2, 0x7f0a0052

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mShareBtn:Landroid/widget/Button;

    .line 197
    const v2, 0x7f0a0053

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    .line 198
    const v2, 0x7f0a0054

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBottomBar:Landroid/view/View;

    .line 199
    const v2, 0x7f0a0055

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayTime:Landroid/widget/TextView;

    .line 200
    const v2, 0x7f0a0056

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/SeekBar;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    .line 201
    const v2, 0x7f0a0057

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTotalPlayTime:Landroid/widget/TextView;

    .line 203
    const v2, 0x7f0a0058

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mImgIndicatorLoadingVideo:Landroid/widget/ImageView;

    .line 204
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mImgIndicatorLoadingVideo:Landroid/widget/ImageView;

    invoke-virtual {v2}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v2

    check-cast v2, Landroid/graphics/drawable/AnimationDrawable;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mDrawableIndicatorLoadingVideo:Landroid/graphics/drawable/AnimationDrawable;

    .line 205
    const v2, 0x7f0a0059

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageButton;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    .line 206
    const v2, 0x7f0a005a

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mViewCenterPanel:Landroid/view/View;

    .line 207
    const v2, 0x7f0a005b

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 208
    .local v0, "imgPlayCompletedAppIcon":Landroid/widget/ImageView;
    const v2, 0x7f02003d

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 209
    const v2, 0x7f0a005c

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 210
    .local v1, "txtPlayCompletedAppName":Landroid/widget/TextView;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/VideoAppModel;->title:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 211
    const v2, 0x7f0a005d

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayCompletedReplay:Landroid/widget/Button;

    .line 212
    const v2, 0x7f0a005e

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayCompletedDownload:Landroid/widget/Button;

    .line 213
    const v2, 0x7f0a005f

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTxtNetworkError:Landroid/widget/TextView;

    .line 215
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v3, v3, Lcom/brixd/niceapp/model/VideoAppModel;->iconUrl:Ljava/lang/String;

    iget-object v4, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIconOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v2, v3, v0, v4}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 216
    return-void

    .line 182
    .end local v0    # "imgPlayCompletedAppIcon":Landroid/widget/ImageView;
    .end local v1    # "txtPlayCompletedAppName":Landroid/widget/TextView;
    :cond_110
    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->setRequestedOrientation(I)V

    goto/16 :goto_a
.end method

.method private initWidgetsActions()V
    .registers 3

    .prologue
    .line 219
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mSurfaceView:Landroid/view/SurfaceView;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$3;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$3;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/SurfaceView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 251
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBackBtn:Landroid/widget/ImageButton;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$4;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 261
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mShowDetailBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$5;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$5;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 269
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mShareBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$6;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$6;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 276
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$7;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$7;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 286
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$8;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$8;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    .line 324
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$9;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$9;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 358
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayCompletedReplay:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$10;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$10;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 377
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayCompletedDownload:Landroid/widget/Button;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$11;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$11;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 388
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTxtNetworkError:Landroid/widget/TextView;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$12;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$12;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 397
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->initAnimations()V

    .line 398
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->resetViewsStatus()V

    .line 399
    return-void
.end method

.method private launchOrDownloadApp()V
    .registers 11

    .prologue
    .line 732
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z

    if-eqz v0, :cond_19

    .line 734
    :try_start_4
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v1, v1, Lcom/brixd/niceapp/model/VideoAppModel;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v9

    .line 735
    .local v9, "intent":Landroid/content/Intent;
    invoke-virtual {p0, v9}, Lcom/brixd/niceapp/activity/AppVideoActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_13} :catch_14

    .line 762
    .end local v9    # "intent":Landroid/content/Intent;
    :goto_13
    return-void

    .line 736
    :catch_14
    move-exception v7

    .line 737
    .local v7, "e":Ljava/lang/Exception;
    invoke-virtual {v7}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_13

    .line 740
    .end local v7    # "e":Ljava/lang/Exception;
    :cond_19
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget v0, v0, Lcom/brixd/niceapp/model/VideoAppModel;->minSdkVersion:I

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-le v0, v1, :cond_34

    .line 741
    new-instance v6, Lcom/brixd/niceapp/ui/AlertDialog;

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {v6, v0}, Lcom/brixd/niceapp/ui/AlertDialog;-><init>(Landroid/content/Context;)V

    .line 742
    .local v6, "dialog":Lcom/brixd/niceapp/ui/AlertDialog;
    const v0, 0x7f0c001a

    invoke-virtual {v6, v0}, Lcom/brixd/niceapp/ui/AlertDialog;->setMessage(I)V

    .line 743
    invoke-virtual {v6}, Lcom/brixd/niceapp/ui/AlertDialog;->show()V

    goto :goto_13

    .line 746
    .end local v6    # "dialog":Lcom/brixd/niceapp/ui/AlertDialog;
    :cond_34
    :try_start_34
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v0, v0, Lcom/brixd/niceapp/model/VideoAppModel;->downloadUrl:Ljava/lang/String;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget v1, v1, Lcom/brixd/niceapp/model/VideoAppModel;->articleId:I

    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/VideoAppModel;->title:Ljava/lang/String;

    .line 747
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getContext()Landroid/content/Context;

    move-result-object v3

    const v4, 0x7f0c0062

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const-string v4, "nice_apps"

    const/4 v5, 0x1

    .line 746
    invoke-static/range {v0 .. v5}, Lcom/brixd/niceapp/util/DownloadUtils;->startDownload(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V

    .line 749
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0c0107

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V
    :try_end_60
    .catch Ljava/lang/Exception; {:try_start_34 .. :try_end_60} :catch_61

    goto :goto_13

    .line 750
    :catch_61
    move-exception v7

    .line 752
    .restart local v7    # "e":Ljava/lang/Exception;
    :try_start_62
    new-instance v9, Landroid/content/Intent;

    invoke-direct {v9}, Landroid/content/Intent;-><init>()V

    .line 753
    .restart local v9    # "intent":Landroid/content/Intent;
    const-string v0, "android.intent.action.VIEW"

    invoke-virtual {v9, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 754
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v0, v0, Lcom/brixd/niceapp/model/VideoAppModel;->downloadUrl:Ljava/lang/String;

    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    invoke-virtual {v9, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 755
    invoke-virtual {p0, v9}, Lcom/brixd/niceapp/activity/AppVideoActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_7a
    .catch Ljava/lang/Exception; {:try_start_62 .. :try_end_7a} :catch_7b

    goto :goto_13

    .line 756
    .end local v9    # "intent":Landroid/content/Intent;
    :catch_7b
    move-exception v8

    .line 757
    .local v8, "e1":Ljava/lang/Exception;
    invoke-virtual {v8}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_13
.end method

.method private releaseVideo()V
    .registers 2

    .prologue
    .line 569
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    .line 570
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_10

    .line 571
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    .line 572
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    .line 574
    :cond_10
    return-void
.end method

.method private resetVideo()V
    .registers 2

    .prologue
    .line 540
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    if-nez v0, :cond_13

    .line 541
    new-instance v0, Landroid/media/MediaPlayer;

    invoke-direct {v0}, Landroid/media/MediaPlayer;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    .line 545
    :goto_b
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->configVideo()V

    .line 546
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    .line 547
    return-void

    .line 543
    :cond_13
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    goto :goto_b
.end method

.method private resetViewsStatus()V
    .registers 7

    .prologue
    const/4 v1, 0x0

    const/4 v5, 0x4

    const/4 v4, 0x0

    .line 420
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mHandler:Landroid/os/Handler;

    invoke-virtual {v0, v1, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;Ljava/lang/Object;)V

    .line 422
    invoke-direct {p0, v4}, Lcom/brixd/niceapp/activity/AppVideoActivity;->showControlToolBar(Z)V

    .line 423
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mRunnableHideControlToolBar:Ljava/lang/Runnable;

    const-wide/16 v2, 0x1388

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 425
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v0}, Landroid/widget/ImageButton;->getVisibility()I

    move-result v0

    if-nez v0, :cond_26

    .line 426
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 427
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v0, v4}, Landroid/widget/ImageButton;->setImageLevel(I)V

    .line 430
    :cond_26
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mViewCenterPanel:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v0

    if-nez v0, :cond_38

    .line 431
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mViewCenterPanel:Landroid/view/View;

    invoke-virtual {v0, v5}, Landroid/view/View;->setVisibility(I)V

    .line 432
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

    .line 435
    :cond_38
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->showLoading()V

    .line 436
    return-void
.end method

.method private shareVideo()V
    .registers 6

    .prologue
    .line 718
    const-string v2, "VideoPlayShare"

    invoke-static {p0, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 721
    :try_start_5
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.SEND"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 722
    .local v1, "intent":Landroid/content/Intent;
    const-string v2, "text/plain"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 723
    const-string v2, "android.intent.extra.TEXT"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mVideoAppModel:Lcom/brixd/niceapp/model/VideoAppModel;

    iget-object v4, v4, Lcom/brixd/niceapp/model/VideoAppModel;->shareContent:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 724
    const/high16 v2, 0x10000000

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 725
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0c00ef

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v2

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_44
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_44} :catch_45

    .line 729
    .end local v1    # "intent":Landroid/content/Intent;
    :goto_44
    return-void

    .line 726
    :catch_45
    move-exception v0

    .line 727
    .local v0, "exception":Ljava/lang/Exception;
    const-string v2, "tag"

    const-string v3, "Share failed"

    invoke-static {v2, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_44
.end method

.method private showCenterPanel()V
    .registers 4

    .prologue
    .line 495
    iget-boolean v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsShowLaunch:Z

    iget-boolean v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z

    invoke-direct {p0, v1, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updateDownloadOrLaunch(ZZ)V

    .line 496
    const v1, 0x7f040005

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    .line 497
    .local v0, "scaleFadeIn":Landroid/view/animation/Animation;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mViewCenterPanel:Landroid/view/View;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 498
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mViewCenterPanel:Landroid/view/View;

    invoke-virtual {v1, v0}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 499
    return-void
.end method

.method private showControlToolBar(Z)V
    .registers 7
    .param p1, "isDarkBG"    # Z

    .prologue
    const/4 v2, 0x2

    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 449
    iput-boolean v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsControlToolBarShown:Z

    .line 451
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsShowLaunch:Z

    iget-boolean v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsInstalled:Z

    invoke-direct {p0, v0, v1}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updateDownloadOrLaunch(ZZ)V

    .line 453
    if-eqz p1, :cond_2d

    .line 454
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    new-array v1, v2, [I

    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorTransparent:I

    aput v2, v1, v4

    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorBlack70:I

    aput v2, v1, v3

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setIntValues([I)V

    .line 458
    :goto_1d
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V

    .line 459
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimTopBar:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 460
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimBottomBar:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 461
    return-void

    .line 456
    :cond_2d
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    new-array v1, v2, [I

    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorTransparent:I

    aput v2, v1, v4

    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorBlack20:I

    aput v2, v1, v3

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setIntValues([I)V

    goto :goto_1d
.end method

.method private showLoading()V
    .registers 3

    .prologue
    .line 439
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mImgIndicatorLoadingVideo:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 440
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mDrawableIndicatorLoadingVideo:Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->start()V

    .line 441
    return-void
.end method

.method private updateBtnPlayControlStatus(IZ)V
    .registers 6
    .param p1, "playStatus"    # I
    .param p2, "isVisible"    # Z

    .prologue
    const/4 v2, 0x1

    const/4 v0, 0x0

    .line 485
    if-ne p1, v2, :cond_11

    .line 486
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v1, v0}, Landroid/widget/ImageButton;->setImageLevel(I)V

    .line 491
    :cond_9
    :goto_9
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    if-eqz p2, :cond_1a

    :goto_d
    invoke-virtual {v1, v0}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 492
    return-void

    .line 487
    :cond_11
    const/4 v1, 0x2

    if-ne p1, v1, :cond_9

    .line 488
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setImageLevel(I)V

    goto :goto_9

    .line 491
    :cond_1a
    const/4 v0, 0x4

    goto :goto_d
.end method

.method private updateDownloadOrLaunch(ZZ)V
    .registers 5
    .param p1, "isShowLaunch"    # Z
    .param p2, "isInstalled"    # Z

    .prologue
    .line 471
    if-nez p1, :cond_20

    if-eqz p2, :cond_20

    .line 472
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsShowLaunch:Z

    .line 473
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    const v1, 0x7f0c0022

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 474
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    const v1, 0x7f020006

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 475
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayCompletedDownload:Landroid/widget/Button;

    const v1, 0x7f02000f

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 482
    :cond_1f
    :goto_1f
    return-void

    .line 476
    :cond_20
    if-eqz p1, :cond_1f

    if-nez p2, :cond_1f

    .line 477
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsShowLaunch:Z

    .line 478
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    const v1, 0x7f0c0020

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 479
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    const v1, 0x7f020003

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    .line 480
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayCompletedDownload:Landroid/widget/Button;

    const v1, 0x7f02000c

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    goto :goto_1f
.end method

.method private updatePlayStatus(I)V
    .registers 3
    .param p1, "currentStatus"    # I

    .prologue
    .line 577
    iget v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    iput v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLastPlayStatus:I

    .line 578
    iput p1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    .line 579
    return-void
.end method


# virtual methods
.method public onAppExit(Lcom/brixd/niceapp/bus/event/AppExitEvent;)V
    .registers 2
    .param p1, "event"    # Lcom/brixd/niceapp/bus/event/AppExitEvent;
    .annotation runtime Lcom/squareup/otto/Subscribe;
    .end annotation

    .prologue
    .line 824
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->finish()V

    .line 825
    return-void
.end method

.method public onAudioFocusChange(I)V
    .registers 6
    .param p1, "focusChange"    # I

    .prologue
    const/4 v3, 0x3

    const/4 v2, 0x0

    .line 840
    packed-switch p1, :pswitch_data_22

    .line 854
    :goto_5
    :pswitch_5
    return-void

    .line 842
    :pswitch_6
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v1, v3}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v1

    int-to-float v1, v1

    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioManager:Landroid/media/AudioManager;

    .line 843
    invoke-virtual {v2, v3}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v2

    int-to-float v2, v2

    div-float v0, v1, v2

    .line 844
    .local v0, "volume":F
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, v0, v0}, Landroid/media/MediaPlayer;->setVolume(FF)V

    goto :goto_5

    .line 849
    .end local v0    # "volume":F
    :pswitch_1c
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1, v2, v2}, Landroid/media/MediaPlayer;->setVolume(FF)V

    goto :goto_5

    .line 840
    :pswitch_data_22
    .packed-switch -0x3
        :pswitch_1c
        :pswitch_1c
        :pswitch_1c
        :pswitch_5
        :pswitch_6
    .end packed-switch
.end method

.method public onBufferingUpdate(Landroid/media/MediaPlayer;I)V
    .registers 7
    .param p1, "mp"    # Landroid/media/MediaPlayer;
    .param p2, "percent"    # I

    .prologue
    const/4 v3, 0x0

    .line 624
    iget v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    if-eqz v1, :cond_a

    iget v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_b

    .line 643
    :cond_a
    :goto_a
    return-void

    .line 628
    :cond_b
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v1

    iput v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    .line 629
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v1

    mul-int/2addr v1, p2

    int-to-float v1, v1

    const/high16 v2, 0x42c80000

    div-float/2addr v1, v2

    float-to-int v0, v1

    .line 630
    .local v0, "bufferingPosition":I
    iget v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    add-int/lit16 v2, v0, 0x1f4

    if-ge v1, v2, :cond_40

    .line 631
    iget v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    const/4 v2, 0x4

    if-ne v1, v2, :cond_40

    iget-boolean v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsBufferingEnd:Z

    if-eqz v1, :cond_40

    .line 632
    iget v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLastPlayStatus:I

    iput v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    .line 633
    iput-boolean v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsBufferingEnd:Z

    .line 634
    iget-boolean v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsControlToolBarShown:Z

    if-eqz v1, :cond_3d

    .line 635
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v1, v3}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 637
    :cond_3d
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->hideLoading()V

    .line 640
    :cond_40
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayTime:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v2}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v2

    int-to-long v2, v2

    invoke-direct {p0, v2, v3}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getVideoTime(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 641
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    invoke-virtual {v1, v2}, Landroid/widget/SeekBar;->setProgress(I)V

    .line 642
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    invoke-virtual {v1, v0}, Landroid/widget/SeekBar;->setSecondaryProgress(I)V

    goto :goto_a
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .registers 8
    .param p1, "mp"    # Landroid/media/MediaPlayer;

    .prologue
    const/16 v5, 0x8

    const/4 v4, 0x1

    .line 655
    const-string v0, "VideoPlayCompleted"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 657
    const/4 v0, 0x3

    invoke-direct {p0, v0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    .line 658
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    invoke-virtual {v0}, Landroid/widget/SeekBar;->getMax()I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    .line 660
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsControlToolBarShown:Z

    if-eqz v0, :cond_4f

    .line 661
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    const/4 v1, 0x2

    new-array v1, v1, [I

    const/4 v2, 0x0

    iget v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorBlack20:I

    aput v3, v1, v2

    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mColorBlack70:I

    aput v2, v1, v4

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setIntValues([I)V

    .line 662
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAnimControlToolBarBG:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V

    .line 663
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 664
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 665
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mRunnableHideControlToolBar:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 672
    :goto_40
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mDrawableIndicatorLoadingVideo:Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_4b

    .line 673
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->hideLoading()V

    .line 676
    :cond_4b
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->showCenterPanel()V

    .line 677
    return-void

    .line 667
    :cond_4f
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTopBarActions:Landroid/view/ViewGroup;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setLayoutTransition(Landroid/animation/LayoutTransition;)V

    .line 668
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLaunchOrDownloadBtn:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 669
    invoke-direct {p0, v4}, Lcom/brixd/niceapp/activity/AppVideoActivity;->showControlToolBar(Z)V

    goto :goto_40
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "bundle"    # Landroid/os/Bundle;

    .prologue
    .line 128
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 130
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/squareup/otto/Bus;->register(Ljava/lang/Object;)V

    .line 132
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->initData()V

    .line 133
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->initWidgets()V

    .line 134
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->initWidgetsActions()V

    .line 135
    return-void
.end method

.method protected onDestroy()V
    .registers 3

    .prologue
    .line 808
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onDestroy()V

    .line 809
    iget-boolean v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsDestroy:Z

    if-nez v1, :cond_a

    .line 810
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->releaseVideo()V

    .line 812
    :cond_a
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioManager:Landroid/media/AudioManager;

    invoke-virtual {v1, p0}, Landroid/media/AudioManager;->abandonAudioFocus(Landroid/media/AudioManager$OnAudioFocusChangeListener;)I

    .line 815
    :try_start_f
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAppInstallReceiver:Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/AppVideoActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_14
    .catch Ljava/lang/IllegalArgumentException; {:try_start_f .. :try_end_14} :catch_15

    .line 819
    :goto_14
    return-void

    .line 816
    :catch_15
    move-exception v0

    .line 817
    .local v0, "e":Ljava/lang/IllegalArgumentException;
    invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_14
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .registers 9
    .param p1, "mp"    # Landroid/media/MediaPlayer;
    .param p2, "what"    # I
    .param p3, "extra"    # I

    .prologue
    const/4 v4, 0x1

    .line 699
    if-ne p2, v4, :cond_6

    .line 700
    packed-switch p3, :pswitch_data_14

    .line 714
    :cond_6
    :goto_6
    return v4

    .line 702
    :pswitch_7
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$15;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$15;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    const-wide/16 v2, 0x258

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_6

    .line 700
    :pswitch_data_14
    .packed-switch -0x3ec
        :pswitch_7
    .end packed-switch
.end method

.method public onInfo(Landroid/media/MediaPlayer;II)Z
    .registers 7
    .param p1, "mp"    # Landroid/media/MediaPlayer;
    .param p2, "what"    # I
    .param p3, "extra"    # I

    .prologue
    const/4 v2, 0x4

    const/4 v0, 0x1

    .line 681
    const/16 v1, 0x2bd

    if-ne p2, v1, :cond_1a

    iget v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    if-ne v1, v0, :cond_1a

    .line 683
    invoke-direct {p0, v2}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    .line 684
    iget-boolean v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsControlToolBarShown:Z

    if-eqz v1, :cond_16

    .line 685
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setVisibility(I)V

    .line 687
    :cond_16
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->showLoading()V

    .line 693
    :goto_19
    return v0

    .line 689
    :cond_1a
    const/16 v1, 0x2be

    if-ne p2, v1, :cond_21

    .line 690
    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsBufferingEnd:Z

    goto :goto_19

    .line 693
    :cond_21
    const/4 v0, 0x0

    goto :goto_19
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .registers 5
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    .line 829
    const/4 v0, 0x4

    if-ne p1, v0, :cond_11

    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_11

    .line 830
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsDestroy:Z

    .line 831
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->finish()V

    .line 832
    const/4 v0, 0x0

    .line 834
    :goto_10
    return v0

    :cond_11
    invoke-super {p0, p1, p2}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_10
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .registers 2
    .param p1, "intent"    # Landroid/content/Intent;

    .prologue
    .line 766
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onNewIntent(Landroid/content/Intent;)V

    .line 767
    return-void
.end method

.method public onPrepared(Landroid/media/MediaPlayer;)V
    .registers 12
    .param p1, "mp"    # Landroid/media/MediaPlayer;

    .prologue
    const/4 v9, 0x2

    const/4 v8, 0x0

    const/4 v7, 0x1

    const/4 v6, 0x0

    .line 583
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v2, :cond_53

    .line 584
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->hideLoading()V

    .line 586
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTopBarActions:Landroid/view/ViewGroup;

    new-instance v3, Landroid/animation/LayoutTransition;

    invoke-direct {v3}, Landroid/animation/LayoutTransition;-><init>()V

    invoke-virtual {v2, v3}, Landroid/view/ViewGroup;->setLayoutTransition(Landroid/animation/LayoutTransition;)V

    .line 588
    invoke-virtual {p1}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v1

    .line 589
    .local v1, "videoTimeDuration":I
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayTime:Landroid/widget/TextView;

    const-wide/16 v4, 0x0

    invoke-direct {p0, v4, v5}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getVideoTime(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 590
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTotalPlayTime:Landroid/widget/TextView;

    int-to-long v4, v1

    invoke-direct {p0, v4, v5}, Lcom/brixd/niceapp/activity/AppVideoActivity;->getVideoTime(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 591
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayTime:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 592
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mTotalPlayTime:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 593
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    invoke-virtual {v2, v6}, Landroid/widget/SeekBar;->setVisibility(I)V

    .line 594
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    invoke-virtual {v2, v1}, Landroid/widget/SeekBar;->setMax(I)V

    .line 595
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v2, v6}, Landroid/widget/ImageButton;->setImageLevel(I)V

    .line 597
    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    if-nez v2, :cond_62

    .line 598
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v2}, Landroid/media/MediaPlayer;->start()V

    .line 599
    invoke-direct {p0, v7}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    .line 615
    .end local v1    # "videoTimeDuration":I
    :cond_53
    :goto_53
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioManager:Landroid/media/AudioManager;

    const/4 v3, 0x3

    invoke-virtual {v2, p0, v3, v7}, Landroid/media/AudioManager;->requestAudioFocus(Landroid/media/AudioManager$OnAudioFocusChangeListener;II)I

    move-result v0

    .line 617
    .local v0, "result":I
    if-eq v0, v7, :cond_61

    .line 618
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v2, v8, v8}, Landroid/media/MediaPlayer;->setVolume(FF)V

    .line 620
    :cond_61
    return-void

    .line 602
    .end local v0    # "result":I
    .restart local v1    # "videoTimeDuration":I
    :cond_62
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    iget v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    invoke-virtual {v2, v3}, Landroid/media/MediaPlayer;->seekTo(I)V

    .line 603
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mProgressSeekBar:Landroid/widget/SeekBar;

    iget v3, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPosition:I

    invoke-virtual {v2, v3}, Landroid/widget/SeekBar;->setProgress(I)V

    .line 605
    iget v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mLastPlayStatus:I

    if-ne v2, v9, :cond_78

    .line 606
    invoke-direct {p0, v9}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    goto :goto_53

    .line 608
    :cond_78
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    invoke-virtual {v2}, Landroid/media/MediaPlayer;->start()V

    .line 609
    invoke-direct {p0, v7}, Lcom/brixd/niceapp/activity/AppVideoActivity;->updatePlayStatus(I)V

    goto :goto_53
.end method

.method protected onResume()V
    .registers 4

    .prologue
    .line 771
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onResume()V

    .line 773
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v2, :cond_10

    iget-boolean v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsResumeToPlaying:Z

    if-eqz v2, :cond_10

    .line 774
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v2}, Landroid/widget/ImageButton;->performClick()Z

    .line 777
    :cond_10
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 778
    .local v0, "filterAppInstall":Landroid/content/IntentFilter;
    const-string v2, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 779
    const-string v2, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 780
    const-string v2, "package"

    invoke-virtual {v0, v2}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 781
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAppInstallReceiver:Lcom/brixd/niceapp/activity/AppVideoActivity$AppInstallReceiver;

    invoke-virtual {p0, v2, v0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 783
    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "android.media.AUDIO_BECOMING_NOISY"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 785
    .local v1, "filterAudioBecomeNoisy":Landroid/content/IntentFilter;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioBecomingNoisy:Lcom/brixd/niceapp/activity/AppVideoActivity$AudioBecomingNoisy;

    invoke-virtual {p0, v2, v1}, Lcom/brixd/niceapp/activity/AppVideoActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 786
    return-void
.end method

.method public onSeekComplete(Landroid/media/MediaPlayer;)V
    .registers 2
    .param p1, "mp"    # Landroid/media/MediaPlayer;

    .prologue
    .line 651
    return-void
.end method

.method protected onStop()V
    .registers 4

    .prologue
    const/4 v2, 0x1

    .line 790
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsBaseActivity;->onStop()V

    .line 792
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v1, :cond_19

    iget v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mCurrentPlayStatus:I

    if-ne v1, v2, :cond_19

    .line 793
    iput-boolean v2, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsResumeToPlaying:Z

    .line 794
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mBtnPlayControl:Landroid/widget/ImageButton;

    invoke-virtual {v1}, Landroid/widget/ImageButton;->performClick()Z

    .line 800
    :goto_13
    :try_start_13
    iget-object v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mAudioBecomingNoisy:Lcom/brixd/niceapp/activity/AppVideoActivity$AudioBecomingNoisy;

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/AppVideoActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_18
    .catch Ljava/lang/IllegalArgumentException; {:try_start_13 .. :try_end_18} :catch_1d

    .line 804
    :goto_18
    return-void

    .line 796
    :cond_19
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsResumeToPlaying:Z

    goto :goto_13

    .line 801
    :catch_1d
    move-exception v0

    .line 802
    .local v0, "e":Ljava/lang/IllegalArgumentException;
    invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_18
.end method

.method public surfaceChanged(Landroid/view/SurfaceHolder;III)V
    .registers 5
    .param p1, "holder"    # Landroid/view/SurfaceHolder;
    .param p2, "format"    # I
    .param p3, "width"    # I
    .param p4, "height"    # I

    .prologue
    .line 521
    return-void
.end method

.method public surfaceCreated(Landroid/view/SurfaceHolder;)V
    .registers 2
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    .line 516
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AppVideoActivity;->resetVideo()V

    .line 517
    return-void
.end method

.method public surfaceDestroyed(Landroid/view/SurfaceHolder;)V
    .registers 4
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    .line 525
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mIsDestroy:Z

    if-eqz v0, :cond_12

    .line 526
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/brixd/niceapp/activity/AppVideoActivity$14;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/AppVideoActivity$14;-><init>(Lcom/brixd/niceapp/activity/AppVideoActivity;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 531
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 537
    :cond_11
    :goto_11
    return-void

    .line 534
    :cond_12
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_11

    .line 535
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppVideoActivity;->mMediaPlayer:Landroid/media/MediaPlayer;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setDisplay(Landroid/view/SurfaceHolder;)V

    goto :goto_11
.end method
